//
//  QLMPeijianListVC.m
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/10/9.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "QLMPeijianListVC.h"
#import "QLMPeijianListCVCell.h"

@interface QLMPeijianListVC (){
    UILabel *titleLabel;
    QLMPeijianListCVCell *pjCollectionCell;
    NSString *dataStr;
}
@property (nonatomic,strong) NSMutableDictionary *cellDic;
@property (nonatomic,strong) NSMutableArray *tititiArray;
@end

@implementation QLMPeijianListVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title=@"配件展示列表";
    
    UIWebView *webview=[[UIWebView alloc]  initWithFrame:self.view.bounds];
    NSURLRequest *request=[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.baidu.com"]];
    [webview loadRequest:request];
//    webview.delegate=self;
    [self.view addSubview:webview];
    
//    dataStr=@"9999999999";
//    self.cellDic = [[NSMutableDictionary alloc] init];
//    _tititiArray=[NSMutableArray arrayWithObjects:@"12313366375",@"12313366375",@"12313366375", nil];
//
//    self.pjListTableView.backgroundColor=[UIColor clearColor];
//    self.pjCollectionView.backgroundColor=[UIColor clearColor];
//    self.pjListTableView.tableFooterView=[UIView new];
//
//    UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
//    [layout setScrollDirection:UICollectionViewScrollDirectionVertical];
//    layout.minimumInteritemSpacing = 0;// 垂直方向的间距
//    layout.minimumLineSpacing = 0; // 水平方向的间距
//    self.pjCollectionView.alwaysBounceVertical = YES;
//    self.pjCollectionView.collectionViewLayout=layout;
//    [self.pjCollectionView registerClass:[QLMPeijianListCVCell class] forCellWithReuseIdentifier:@"QLMPeijianListCVCellId"];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden=NO;
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - UITableView datasource
//- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
//    return 2;
//}
//
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//    static NSString *identifier=@"picellid";
//    UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:identifier];
//    if (!cell) {
//        cell=[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
//    }
//    cell.textLabel.text=@"配件展示";
//    cell.textLabel.textColor=[UIColor grayColor];
//    cell.textLabel.font=[UIFont systemFontOfSize:14.0f];
//    return cell;
//}
//
//- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//    if(indexPath.row==0){
//        dataStr=@"8888888888888";
//    }else{
//        dataStr=@"666666666";
//    }
//    [self.pjCollectionView reloadData];
//}
//
//#pragma mark - UICollectionView datasource
//- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
//    return 3;
//}
//
//- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
//
//    return 1;
//}
//
//- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{
//    return CGSizeMake(kScreen_width-140, 44);
//}
//
//- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
//    static NSString *identifiew=@"QLMPeijianListCVCellId";
//    pjCollectionCell=[collectionView dequeueReusableCellWithReuseIdentifier:identifiew forIndexPath:indexPath];
//    pjCollectionCell.backgroundColor=[UIColor whiteColor];
//    pjCollectionCell.pjnameLabel.text=dataStr;
//    pjCollectionCell.pjnameLabel.textColor=[UIColor greenColor];
//
//    return pjCollectionCell;
//}
//
///** section的margin*/
//- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
//    return UIEdgeInsetsMake(0, 0, 0, 0);
//}
//
//#pragma mark -- UICollectionViewDelegate
//- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
//    NSLog(@"点击了第 %zd组 第%zd个",indexPath.section, indexPath.row);
//}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
